import request from '@/utils/request' // 引入创建好的axios对象

// 1.导出查询联想api
export const getSearchadvise = q => {
  return request({
    method: 'GET',
    url: '/app/v1_0/suggestion',
    params: {
      q
    }
  })
}
// 2.导出查询结果api
export const getSearchresult = params => {
  return request({
    method: 'GET',
    url: '/app/v1_0/search',
    params
  })
}
